module.exports = app =>{

    let { validator } = app;
    // 校验用户名是否正确
    validator.addRule('tel', (rule, value)=>{
      console.log(rule);
      if (!/^1(3|4|5|6|7|8|9)\d{9}$/.test(value)) {
        return "手机号格式不正确";
      }
    });
  };